package issue;

import org.apache.ibatis.parsing.XNode;
import org.apache.ibatis.parsing.XPathParser;

import java.io.InputStream;

public class ReproduceXnode {

    public static void main(String[] args) {

        InputStream resourceAsStream = ReproduceXnode.class.getClassLoader().getResourceAsStream("issue/StudentMapper.xml");
        XPathParser xPathParser = new XPathParser(resourceAsStream);


        XNode select = xPathParser.evalNode("mapper/select");

        System.out.println(select.toString());

    }

}
